import Vue from 'vue'
import App from './App'
import QualificationsStatus from '@/components/qualificationsStatus.vue'
import ImageCache from "@/components/imageCache/index.vue"
// #ifdef MP
import Share from 'utils/share.js'




Vue.mixin(Share)
// #endif
Vue.config.productionTip = false

Vue.component('QualificationsStatus', QualificationsStatus)
Vue.component('ImageCache', ImageCache)

// 验证登陆的全局方法
Vue.prototype.hasToken = () => {
	return uni.getStorageSync('token') ? true : false
}
Vue.prototype.staticUrl = () => {
	return 'https://www.xdyy100.com/wholesale/files/mp/static'
}


Vue.prototype.$onLaunched = new Promise(resolve => {
	Vue.prototype.$isResolve = resolve
})

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()
